import request from '../utils/request';

export const fetchData = () => {
    return request({
        url: './table.json',
        method: 'get'
    });
};

export const gatewayServerData = () => {
    return request({
        url: 'http://localhost:8080/wg/admin/data/queryGatewayServer?groupId=' + '&page=' + 1 + '&limit=' + 10,
        method: 'get'
    });
};

export const gatewayServerDetailData = () => {
    return request({
        url: 'http://localhost:8080/wg/admin/data/queryGatewayServerDetail?groupId=' + '&gatewayId=' + '&page=' + 1 + '&limit=' + 10,
        method: 'get'
    });
};

export const gatewayDistributionData = () => {
    return request({
        url: 'http://localhost:8080/wg/admin/data/queryGatewayDistribution?groupId=' + '&gatewayId=' + '&page=' + 1 + '&limit=' + 10,
        method: 'get'
    });
};

export const applicationSystemData = () => {
    return request({
        // url: 'http://localhost:8080/wg/admin/data/queryApplicationSystem?systemId=' + query.systemId + '&systemName=' + query.systemName + '&page=' + query.pageIndex + '&limit=' + query.pageSize,
        url: 'http://localhost:8080/wg/admin/data/queryApplicationSystem?systemId=' + '&systemName=' + '&page=' + 1 + '&limit=' + 10,
        method: 'get'
    });
};

export const applicationInterfaceData = () => {
    return request({
        url: 'http://localhost:8080/wg/admin/data/queryApplicationInterface?systemId=' + '&interfaceId=' + '&page=' + 1 + '&limit=' + 10,
        method: 'get'
    });
};

export const applicationInterfaceMethodData = () => {
    return request({
        url: 'http://localhost:8080/wg/admin/data/queryApplicationInterfaceMethod?systemId=' + '&interfaceId=' + '&methodId=' + '&page=' + 1 + '&limit=' + 10,
        method: 'get'
    });
};
